#include <iostream>
class SingLeton
{
public:
    static SingLeton *GetInstance()
    {
        if (instance == nullptr)
        {
            instance = new SingLeton();
        }
        return instance;
    }

private:
    SingLeton()
    {
        std::cout << "SingLeton" << std::endl;
    }
    static SingLeton *instance;
    SingLeton& operator=(const SingLeton&)=delete;
    SingLeton (const SingLeton&)=delete;

};

SingLeton *SingLeton::instance = nullptr;


int main(){
    SingLeton::GetInstance();
    SingLeton::GetInstance();
    SingLeton::GetInstance();
    SingLeton::GetInstance();
    SingLeton::GetInstance();

    return 0;
}